package com.fandou.airobot.data.bean;

import androidx.annotation.Keep;

import java.util.List;

/**
 * @author Jm
 * @date 2020/7/7 16:07
 * @description 百度语音语义实体
 */
@Keep
public class NluEntity {


    /**
     * appid : 15373
     * encoding : UTF-8
     * results : [{"domain":"alarm","intent":"SET_REMIND","score":100,"slots":{"user_remind_time":[{"word":"六点","norm":"06:00:00"}],"user_wild_content":[{"word":"吃饭。","norm":"吃饭。"}]}}]
     * err_no : 0
     * parsed_text : 提醒 我 六 点 吃饭 。
     * raw_text : 提醒我六点吃饭。
     */

    private String appid;
    private String encoding;
    private int err_no;
    private String parsed_text;
    private String raw_text;
    private List<Results> results;

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getEncoding() {
        return encoding;
    }

    public void setEncoding(String encoding) {
        this.encoding = encoding;
    }

    public int getErr_no() {
        return err_no;
    }

    public void setErr_no(int err_no) {
        this.err_no = err_no;
    }

    public String getParsed_text() {
        return parsed_text;
    }

    public void setParsed_text(String parsed_text) {
        this.parsed_text = parsed_text;
    }

    public String getRaw_text() {
        return raw_text;
    }

    public void setRaw_text(String raw_text) {
        this.raw_text = raw_text;
    }

    public List<Results> getResults() {
        return results;
    }

    public void setResults(List<Results> results) {
        this.results = results;
    }

    @Keep
    public static class Results {
        /**
         * domain : alarm
         * intent : SET_REMIND
         * score : 100
         * slots : {"user_remind_time":[{"word":"六点","norm":"06:00:00"}],"user_wild_content":[{"word":"吃饭。","norm":"吃饭。"}]}
         */

        private String domain;
        private String intent;
        private int score;
        private Slots slots;

        public String getDomain() {
            return domain;
        }

        public void setDomain(String domain) {
            this.domain = domain;
        }

        public String getIntent() {
            return intent;
        }

        public void setIntent(String intent) {
            this.intent = intent;
        }

        public int getScore() {
            return score;
        }

        public void setScore(int score) {
            this.score = score;
        }

        public Slots getSlots() {
            return slots;
        }

        public void setSlots(Slots slots) {
            this.slots = slots;
        }

        @Keep
        public static class Slots {
            private List<UserRemindTime> user_remind_time;
            private List<UserWildContent> user_wild_content;

            public List<UserRemindTime> getUser_remind_time() {
                return user_remind_time;
            }

            public void setUser_remind_time(List<UserRemindTime> user_remind_time) {
                this.user_remind_time = user_remind_time;
            }

            public List<UserWildContent> getUser_wild_content() {
                return user_wild_content;
            }

            public void setUser_wild_content(List<UserWildContent> user_wild_content) {
                this.user_wild_content = user_wild_content;
            }

            public static class UserRemindTime {
                /**
                 * word : 六点
                 * norm : 06:00:00
                 */

                private String word;
                private String norm;

                public String getWord() {
                    return word;
                }

                public void setWord(String word) {
                    this.word = word;
                }

                public String getNorm() {
                    return norm;
                }

                public void setNorm(String norm) {
                    this.norm = norm;
                }
            }

            public static class UserWildContent {
                /**
                 * word : 吃饭。
                 * norm : 吃饭。
                 */

                private String word;
                private String norm;

                public String getWord() {
                    return word;
                }

                public void setWord(String word) {
                    this.word = word;
                }

                public String getNorm() {
                    return norm;
                }

                public void setNorm(String norm) {
                    this.norm = norm;
                }
            }
        }
    }
}
